<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <div v-if="curVal===1">
        1
    </div>
    <!-- 中间穿插，可能出现意想不到的问题 结果:3333 2 3  -->
    <div>3333</div>
    <div v-else-if="curVal===2">
        2
    </div>
    <div v-else-if="curVal===3">
        3
    </div>

</div>

<script>
    const vueOpt = {
        data(){
            return {
                curVal: 3
            }
        }
    }

    Vue.createApp(vueOpt).mount('#app');
</script>
</body>
</html>